package com.xiaotu.mapper;

import com.xiaotu.pojo.Authority;
import com.xiaotu.pojo.Customer;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CustomerRepository extends JpaRepository<Customer,Integer> {
    Customer findByUsername(String username);
    List<Authority> findAuthoritiesByUsername(String username);
}
